<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<html>
    <head>
        <title>Title</title>
    </head>
    <body>
        <h1>历史订单</h1>
        <hr/>


        <table border="1">
            <tr>
                <th>序号</th>
                <th>订单号</th>
                <th>创建时间</th>
            </tr>


            <c:forEach items="${orders}" var="order" varStatus="s">
                <tr>
                    <td>${s.count}</td>
                    <td>
                        <a href="${pageContext.request.contextPath}/findByOrderId.order?orderId=${order.id}">${order.no}</a>
                    </td>
                    <td>
                        <fmt:formatDate value="${order.createDate}" pattern="yyyy/MM/dd"></fmt:formatDate>
                    </td>
                </tr>
            </c:forEach>





        </table>

        <a href="${pageContext.request.contextPath}/list.product">返回</a>
    </body>
</html>
